package common.impl;

import javax.servlet.http.HttpServletRequest;


public class GetClientIp {
	public static String getip(HttpServletRequest request){
		JValidatorImpl jvld=new JValidatorImpl();
		String address = request.getRemoteAddr();
		if (address != null && jvld.validateIp(address)) {    
			return address;
		}
		return request.getRemoteAddr();    
	}
}
